package pri.damai.xiaowu.goods.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pri.damai.xiaowu.goods.server.entity.ProductSku;

/**
 * sku表(ProductSku)表数据库访问层
 * @Desc
 * @Author DaMai
 * @Date 2022-03-22 15:22:17
 */
@Mapper
public interface ProductSkuDao extends BaseMapper<ProductSku> {

    Integer reduceStock(@Param("skuId") Long id,@Param("reduceNum") Integer stockNum);

}
